package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
public class History {

    //保单id
    private Long id;

    //保单编号
    private String sn;

    //投保人
    private  Client customer;

    //车牌号
   // private String car;

    //开始日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;

    //核保日期
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date checkDate;

    //保险截止日
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    //保险时长(/年)
    private Long duration;

    //业务员
    private Employee inputUser;

    //审核人
    private Employee auditor;

    //投保总金额
    private BigDecimal totalAmout;

    //状态
    private Long state;

    //机构
    private  Organization institutions;

    //产品
    private Product product;


    //车
    private Car car;


}